<template>
  <div class="custom-content-marker">
    <img src="@/assets/images/map/mark_bs.png" />
    <el-icon class="close-btn" @click="handleClearMarker">
      <ep-Close />
    </el-icon>
  </div>
</template>

<script lang="ts" setup>
const emits = defineEmits(['close'])

const handleClearMarker = () => {
  emits('close')
}
</script>
<style lang="scss" scoped>
// 自定义marker点
.custom-content-marker {
  position: relative;
  width: 25px;
  height: 35px;
  img {
    width: 100%;
    height: 100%;
  }
  .close-btn {
    position: absolute;
    top: -6px;
    right: -12px;
    width: 16px;
    height: 16px;
    font-size: 12px;
    background: var(--el-text-color-secondary);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 16px;
  }
  .close-btn:hover {
    background: var(--el-text-color-regular);
  }
}
</style>
